var roles = [
    {
        id: 1,
        name: 'admin'
    }, {
        id: 2,
        name: 'test'
    }, {
        id: 3,
        name: 'dev'
    }
]


var saveMessage=Mock.mock({
    'flag|1':[true,true]
})

Mock.mock('http://test.org/role/list','get',roles)
Mock.mock('http://test.org/user/save','post',saveMessage)
Mock.mock('http://test.org/user/remove','post',saveMessage) // 逻辑删除----状态值是删除，显示时候不出现；否则，
Mock.mock('http://test.org/user/setUse','post',saveMessage) // 设置禁用